<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head></head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>注册</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/bootstrap/css/bootstrap-theme.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/styles/Register.css">
<script src="${pageContext.request.contextPath}/plugins/jquery/jquery-3.2.1.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/plugins/jquery/jquery.validate.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/scripts/RegisterUser.js" type="text/javascript"></script>
<script language="JavaScript">
    history.pushState(null, null, document.URL);
    window.addEventListener('popstate', function () {
        history.pushState(null, null, document.URL);
    })
</script>
<meta name="_csrf" content="${_csrf.token}"/>
<meta name="_csrf_header"  content="${_csrf.headerName}"/>
</head>
<body>
			<div class="col-md-2"></div>
			<div class="col-md-8"
				style="background: #fff; padding: 40px 80px; margin: 30px; border: 7px solid #ccc;">
				<font>会员注册</font>USER REGISTER
				<form id="myform" class="form-horizontal" action="${pageContext.request.contextPath }/Register/RegisterUser" method="post" style="margin-top: 5px;" onsubmit="return CheckRegisterInfo()">
					<div class="form-group">
						<label for="username" class="col-sm-2 control-label">用户名</label>
						<div class="col-sm-6">
							<input type="text" class="form-control" id="username" name="username"
								placeholder="请输入用户名">
						</div>
						<br>
					</div>
					<div class="form-group">
						<label for="password" class="col-sm-2 control-label">密码</label>
						<div class="col-sm-6">
							<input type="password" class="form-control" id="password" name="password"
								placeholder="请输入密码">
						</div>
					</div>
					<div class="form-group">
						<label for="confirmpwd" class="col-sm-2 control-label">确认密码</label>
						<div class="col-sm-6">
							<input type="password" class="form-control" id="confirmpwd" name="repassword"
								placeholder="请输入确认密码">
						</div>
					</div>
					<div class="form-group">
						<label for="userrealname" class="col-sm-2 control-label">姓名</label>
						<div class="col-sm-6">
							<input type="text" class="form-control" id="userrealname" name="userrealname"
								placeholder="请输入姓名">
						</div>
					</div>
					<div class="form-group opt">
						<label  class="col-sm-2 control-label">性别</label>
						<div class="col-sm-6">
							<label class="radio-inline"> 
								<input type="radio" name="sex" id="sex1" value="1" checked>男
							</label> 
							<label class="radio-inline"> 
								<input type="radio" name="sex" id="sex2" value="2">女
							</label>
							<label class="radio-inline">
								<input type="radio" name="sex" id="sex3" value="3">保密
							</label>
						</div>
					</div>
					<div class="form-group">
						<label for="birthday" class="col-sm-2 control-label">出生日期</label>
						<div class="col-sm-6">
							<input type="date" class="form-control" name="birthday" id="birthday">
						</div>
					</div>

					<div class="form-group">
						<label for="user_phonenum" class="col-sm-2 control-label">Email</label>
						<div class="col-sm-5">
							<input type="text" class="form-control" id="user_phonenum" name="user_phonenum"
								   placeholder="phone number">
						</div>
						<button type="button" class = "btn btn-primary" id="btnSendCode" onclick="SendMessageCode()">获取验证码</button>
					</div>
					<div class="form-group">
						<label for="checkcode" class="col-sm-2 control-label">验证码</label>
						<div class="col-sm-3">
							<input type="text" class="form-control" name="checkCode" id="checkcode">
						</div>
					</div>
					<div class="form-group">
					<label class="col-sm-2 control-label" id="MessageTip" style="color: red"></label>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<input type="submit" width="100" value="注册" name="submit">
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</body>
</html>




